
		<div id="main-content"> <!-- Main Content Section with everything -->			
			<!-- Page Head -->			
			<ul class="shortcut-buttons-set">				
				<li><a class="shortcut-button" href="<?php echo base_url();?>editor_books/new_book"><span>
					<img src="<?php echo base_url();?>images/icons/image_add_48.png" alt="icon" /><br />
					New
				</span></a></li>
			</ul><!-- End .shortcut-buttons-set -->
			<form name='search' method='get' action=''>
				<label>关键词：</label>
				<input class="text-input" id='key' type='text' name='key' value='<?php echo $search['key']?$search['key']:'';?>' />
				<select name="source" >
					<option value="" <?php echo $search['source']?'':'selected';?>>--绘本来源--</option>
					<option value="实体书" <?php echo $search['source']=='实体书'?'selected':'';?>>实体书</option>
					<option value="源文件" <?php echo $search['source']=='源文件'?'selected':'';?>>源文件</option>
					<option value="实体书+源文件" <?php echo $search['source']=='实体书+源文件'?'selected':'';?>>实体书+源文件</option>
				</select>
				<select name="destination" >
					<option value="" <?php echo $search['destination']?'':'selected';?>>--制作形式--</option>
					<option value="简单动画" <?php echo $search['destination']=='简单动画'?'selected':'';?>>简单动画</option>
					<option value="精致动画" <?php echo $search['destination']=='精致动画'?'selected':'';?>>精致动画</option>
					<option value="电子杂志" <?php echo $search['destination']=='电子杂志'?'selected':'';?>>电子杂志</option>
					<option value="儿歌（手机版/线上版）" <?php echo $search['destination']=='儿歌（手机版/线上版）'?'selected':'';?>>儿歌（手机版/线上版）</option>
					<option value="动画MTV书" <?php echo $search['destination']=='动画MTV书'?'selected':'';?>>动画MTV书</option>
				</select>
				<select name="language" >
					<option value="" <?php echo $search['language']?'':'selected';?>>--语言--</option>
					<option value="中" <?php echo $search['language']=='中'?'selected':'';?>>中</option>
					<option value="英" <?php echo $search['language']=='英'?'selected':'';?>>英</option>
					<option value="英|中" <?php echo $search['language']=='英|中'?'selected':'';?>>英|中</option>
				</select>
				<select name="description" >
					<option value="" <?php echo $search['description']?'':'selected';?>>--状态--</option>
					<option value="完成并上线" <?php echo $search['description']=='完成并上线'?'selected':'';?>>完成并上线</option>
					<option value="初稿完成" <?php echo $search['description']=='初稿完成'?'selected':'';?>>初稿完成</option>
					<option value="版權洽談中" <?php echo $search['description']=='版權洽談中'?'selected':'';?>>版權洽談中</option>
				</select>
				<input id='pid' type='hidden' name='pid' value='<?php echo $search['pid']?$search['pid']:'';?>' />
				<input class="button" type='submit' value='搜索' />
				<input class='reset button' type='button' value='重置'/>
			</form>				
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>绘本管理</h3>					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->						
						<table>
							
							<thead>
								<tr>
								   
								   <th>No.</th>
								   <th>绘本名称</th>
								   <th>绘本来源</th>
								   <th>制作形式</th>
								   <th>语言</th>
								   <th>状态</th>
								   <th>出版社</th>
								   <th>Operation</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="8">										
										<div class="pagination">
											<?php echo $page;?><!-- 分页 -->										
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<?php $i=0; foreach($query as $row):?>
								<tr>									
									<td><?php $i++;echo $i;?></td>
									<td><?php echo substr($row['title'],0,25);?></td>
									<td><?php echo $row['source'];?></td>
									<td><?php echo $row['destination'];?></td>
									<td><?php echo $row['language'];?></td>
									<td><?php echo mb_substr($row['description'],0,5);?></td>
									<td><a href='<?php echo base_url()?>editor_books/?&pid=<?php echo $row['publisher_id'];?>'><?php echo $row['publishername'];?></a></td>
									<td>
										<!-- Icons -->
										 <a href="<?php echo base_url()?>editor_books/modify_book/<?php echo $row['bid'];?>" title="Edit"><img src="<?php echo base_url()?>images/icons/pencil.png" alt="Edit" /></a>
										 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										 <a href="<?php echo base_url()?>editor_books/del_book/<?php echo $row['bid'];?>" title="Delete" onclick='return del()'><img src="<?php echo base_url()?>images/icons/cross.png" alt="Delete" /></a> 
									</td>
								</tr>
							<?php endforeach;?>	
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
	
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			<div class="clear"></div>			
		</div> <!-- End #main-content -->	
	</div>
</body>
  

<!-- Download From www.exet.tk-->
</html>
<script type='text/javascript'>
$(function(){
	$("#key").autocomplete({
		source: "<?php echo base_url()?>editor_books/autocomplete"
	});
})
</script>